<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<h1 id="h1"></h1>
		<p id="p">3秒后自动回到首页</p>
		
		<script type="text/javascript">
			h1.innerHTML=sessionStorage.state;
			
			setInterval(()=>{
				var s=parseInt(p.innerHTML)-1;
				if(s==0){
					location="index.html";
				}
				p.innerHTML=s+"秒后自动回到首页";
			},1000)
		</script>
	</body>
</html>
